<!--{template admin/header}-->
<body id="homepage">
    <div id="breadcrumb">
        <ul>
            <li><img src="static/img/icons/icon_breadcrumb.png"
                     alt="Location" /></li>
            <li><strong>位置:</strong></li>
            <li><a href="admin.php">主页</a> - 话题详情</li>
        </ul>
    </div>
    <div id="rightside">
        <div class="contentcontainer  user_info">
            <div class="headings altheading">
                <h3>话题详情及评论</h3>
            </div>
            <div class="contentbox">
		        <div>
		        	<table class="table table-bordered table-striped">
						<thead>
							<tr>
								<td>作者</td>
								<td>标题</td>
								<td>圈子</td>
								<td>内容</td>
								<td>发布时间</td>
								<td>回复数</td>
							</tr>
						</thead>
						<tbody>
							<tr>
								<td><img data-src="{$topicInfo[user][avatar]}" alt="20x20" style="width: 20px; height: 20px;" src="{$topicInfo[user][avatar]}"><a href="admin.php?ac=user_profile&uid={$topicInfo[user][uid]}">{$topicInfo[user][nickname]}</a></td>
								<td>{$topicInfo[title]}</td>
								<td>{$topicInfo[gname]}</td>
								<td>{$topicInfo['content']}</td>
								<td><!--{date('Y-m-d H:i:s',$topicInfo[time])}--></td>
								<td>{$topicInfo['res_num']}</td>
							</tr>
						</tbody>
					</table>
		        </div>
		        <div class="extrabottom">
                    <form method="get" action="admin.php" class="form-inline" role="form" >
                    	排序选择:
                       	 <select name="order"  class="span2" >
                       	 	<option value="favorites"{$orderbyArr[favorites]}>点赞数</option>
                       	 	<option value="time"{$orderbyArr[time]}>发布时间</option>
                       	 </select>
                       	 <select name="sort" class="span2" >
							<option value="desc"{$orderscArr['desc']}>降序</option>
                       	 	<option value="acs"{$orderscArr['acs']}>升序</option>
						</select>
                       	<select name="perpage" class="span2" >
                            <option value="20"{$perpageArr[20]}>每页显示20个</option>
                            <option value="50"{$perpageArr[50]}>每页显示50个</option>
                            <option value="100"{$perpageArr[100]}>每页显示100个</option>
                         </select>
                         <input type="hidden" value="count_topic" name="ac">
                         <input type="hidden" value="getTopicInfo" name="op">
                         <input type="hidden" value="{$topicInfo[tid]}" name="tid">
                         <input type="submit" value="查询" class="btn" /> 
                    </form>
                </div>
                <div style="clear: both;"></div>
		        <div>
		        	<table width="100%" class="table table-striped">
	                    <thead>
	                        <tr>
	                            <th>楼层</th>
	                            <th>评论人</th>
	                            <th>评论内容</th>
	                            <th>点赞数</th>
	                            <th>发布时间</th>
	                            <th>引用</th>
	                            <th>操作</th>
	                        </tr>
	                    </thead>
	                    <tbody>
	                    	<!--{loop $topicComments $value}-->
	                    	<tr>
	                    		<td>{$value[position]} 楼</td>
	                    		<td><a target="_blank" href="admin.php?ac=user_profile&uid={$value[uid]}">{$value[nickname]}</a></td>
	                    		<td>{$value[content]}</td>
	                    		<td>{$value[favorites]}</td>
	                    		<td><!--{date('Y-m-d H:i:s',$value[time])}--></td>
	                    		<td>无引用</td>
	                    		<td>无操作</td>
	                    	</tr>
	                    	<!--{/loop}-->
	                    </tbody>
	                </table>
	                <div class="extrabottom">
	                    <div class="bulkactions">
	                        <ul class="pagination">
	                        	<li><a href="$firstpurl">首页</a></li>
	                            <!--{if $currentPage > 1}-->
	                            <li><a href="{$prevpurl}" title="">上一页</a></li>
	                            <!--{/if}-->
	                            <li><a href="$mpurl">第 {$currentPage} 页/共 {$totalPages} 页</a></li>
							    <!--{if  $currentPage < $totalPages}-->
							    <li><a href="$nextpurl">下一页</a></li>
							    <!--{/if}-->
							    <li><a href="$lastpurl">尾页</a></li>
	                        </ul>
	                    </div>
	                </div>
		        </div>
        </div>
    </div>
    </div>
    <script>
        $("#passwd").val() 
    </script>
    <!--{template admin/leftside}-->
    <!--{template admin/footer}-->